@extends('admin.layouts.dashboard')
@section('page_heading','Tables')

@section('section')
<div class="row">
	<div class="col-sm-12">
		@section ('cotable_panel_title','Coloured Table')
		@section ('cotable_panel_body')
		<table class="table table-bordered">
			<thead>
				<tr>
					<th>导航id</th>
					<th>导航名称</th>
					<th>跳转地址</th>
					<th>导航排序</th>
					<th>是否显示</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				@foreach($navs as $nav)
				<tr class="success">
					<td>{{ $nav->id }}</td>
					<td>{{ $nav->title }}</td>
					<td>{{ $nav->url }}</td>
					<td>{{ $nav->sort_id }}</td>
					<td>{{ $nav->is_show }}</td>
					<td>
						@include('admin.delete',array('data'=>$nav,'name' => 'nav'))
					</td>
				</tr>
				@endforeach
			</tbody>
		</table>	
		@endsection
		@include('admin.widgets.panel', array('header'=>true, 'as'=>'cotable'))
	</div>
</div>
<div>
	{{ $navs->render() }}
</div>
@stop